package com.leff.cards;

import java.util.HashMap;

public class Dictionary extends HashMap<String, Object> {
	private static final long serialVersionUID = 1L;
	
	public static Dictionary withObjects(String[] keys, Object[] objs) {
		
		assert(objs.length == keys.length);
		
		Dictionary dict = new Dictionary();
		for(int i = 0; i < keys.length; i++) {
			dict.put(keys[i], objs[i]);
		}
		
		return dict;
	}
	
	public static Dictionary withObject(String key, Object obj) {
		Dictionary dict = new Dictionary();
		dict.put(key, obj);
		return dict;
	}
}
